﻿@model BathhouseService.CURD.ViewModels.PackageServiceVMs.PackageServiceListVM

<wt:searchpanel vm="@Model" reset-btn="true">
<wt:row items-per-row="ItemsPerRowEnum.Three">
<wt:textbox field="Searcher.Name" />
</wt:row>
</wt:searchpanel>
<wt:grid vm="@Model" url="/CURD/PackageService/Search" id="grid1"/>
<wt:grid vm="@Model.PackageServiceSettings" id="grid2" url="/CURD/PackageServiceSettings/Search2" limit="50" hidden-grid-index="true" height="300" />


<script>

    var PackageServiceId = 0;
    //var patientname = "";


     function report2(ids,objs) {
         PackageServiceId = objs[0].ID;
         layui.table.reload('grid2', { where: { "Searcher.PackageServiceId": PackageServiceId}});
    }


     function CreateReport() {
         if (PackageServiceId == 0) {
            layui.layer.alert('请选择一个套餐');
        }
        else {

             ff.OpenDialog('/CURD/PackageServiceSettings/Create2/' + PackageServiceId, '@Guid.NewGuid()', '添加追踪', 400);
        }
         console.log('ok')
    }


</script>